import request from '@/utils/request'
// 登录请求

export function login(data) {
  return request({
    url: '/park/login',
    method: 'post',
    data
  })
}
export const getTable = (params) => {
  return request({
    url: '/park/building',
    method: 'GET',
    params
  })
}
export const fixTable = (data) => {
  return request({
    url: '/park/building',
    method: 'PUT',
    data
  })
}
export const addTable = (data) => {
  return request({
    url: '/park/building',
    method: 'POST',
    data
  })
}
export const delTableData = (id) => {
  return request({
    url: `/park/building/${id}`,
    method: 'DELETE'
  })
}
